#ifndef JBUS_H
#define JBUS_H

#include <JXQIO/JFileDevice>

namespace JXQ
{

class JBusPrivate;

class JXQLIB_EXPORT JBus : public JFileDevice
{
public:
	JBus();
	JBus(const JString &devName);
	~JBus() = 0;

public:
	int64_t bytesAvailable() const override;
	int64_t size() const override;
	int64_t seek(SeekWhence, int64_t) override;
	int64_t tell() const override;

private:
	J_DISABLE_COPY(JBus)
	JBusPrivate *d_ptr;
};

} //namespace JXQ


#endif // JBUS_H
